#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import userclient_blueprint
from api.userClientResource.userClientResource import UserClientResource
from api.userClientResource.userClientOtherResource import UserClientOtherResource

api = Api(userclient_blueprint)

api.add_resource(UserClientResource, 
    '/userClient/<user_id>', 
    '/userClient',
    endpoint='UserClient'
)

@userclient_blueprint.route('/userclient/update/<user_id>', methods=['PUT'], endpoint='UserClientUpdate')
def update(user_id):
    return UserClientOtherResource.sensitive_update(user_id)

